import Vue from "vue"
import config from "./config.js"
import VueRouter from "vue-router"
import store from "../store"
Vue.use(VueRouter)
let router = new VueRouter(config)
router.beforeEach(function(to,from,next){
    // console.log("to",to)
    // console.log("from",from)
    // console.log("",next)
    // store.commit("nav/setPath",to.path)
    // console.log(to.path)
    // if(to.path!="/home"){
    //     // console.log(store)
    //     store.commit("nav/setNavStatus",2)
    // }else{
    //     store.commit("nav/setNavStatus",1)
    // }

    
    next()
})
export default router